package com.ssm.zhihu_ssm.service;

import com.ssm.zhihu_ssm.entity.Answer;

import java.util.List;

public interface AnswerService {
//    List<Answer> getAnswerByUsrId(int id);
    void insertAnswer(int uid, int question_id, String content);//写回答
    void collectAnswer(int uid, int answer_id);//用户收藏回答
    void addAnswerGoodNumByAnswerId(int answer_id, boolean add);//给回答点赞
    void addAnswerBadNumByAnswerId(int answer_id, boolean add);//给回答点踩
    List<Answer> getAnswerByAnswerId(int answer_id);//根据回答id得到回答
    List<Answer> getAnswerByQuestionId(int question_id);//根据问题id得到所有回答
    List<Answer> getHotSortAnswer(int classify_id);//按主题id得到所有问题的回答  并排序
    void deleteAnswerByAnswerId(int id);//后台
    List<Answer> getAllAnswer();//后台
}